package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Menu;
import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Menu record);

    Menu selectByPrimaryKey(Long id);

    List<Menu> selectAll();

    int updateByPrimaryKey(Menu record);

    List<Menu> selectRootMenu();

    List<Menu>  selectChildrenMenu(Long id);

    List<Long> selectByRoleId(Long roleId);
    //员工菜单的处理
    List<Long> selectByEmployeeId(Long empId);
}